typedef struct _adminlist adminlist;
struct _adminlist
{
  char *nick;
  char *mask;
  int level;
  adminlist *next;
  adminlist *prev;
};

extern adminlist *admin_head;

enum
{ NO_FILE, BAD_MASK, BAD_PASS, SUSPEND, BAD_REQUEST, NO_AX, INVALID_AX, LOW_LEVEL };

void send_admin_error (msg * i, byte type);
adminlist *admin_get_admin_by_mask (char *n);
adminlist *admin_get_admin_by_name (char *n);
void admin_add_admin (msg * i, int l);
void admin_del_admin_by_ptr (adminlist * a);
int admin_is_admin (char *nm);
int list_admin (msg * i);
void admin_init_link (void);
int check_lock ();
char *random_pass (int nb);
